package com.qq.first_project.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qq.first_project.entity.Record;
import com.qq.first_project.entity.vo.RecordVo;
import com.qq.first_project.mapper.RecordMapper;
import com.qq.first_project.service.RecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Qiu
 * @since 2023-02-10
 */
@Service
public class RecordServiceImpl extends ServiceImpl<RecordMapper, Record> implements RecordService {
    @Autowired
    @Resource
    private RecordMapper recordMapper;

    @Override
    public IPage<RecordVo> pageList(Page<RecordVo> page, String name) {
        return recordMapper.pageList(page,name);
    }

    @Override
    public List<RecordVo> recordList() {
        return recordMapper.recordList();
    }
}
